<div class="promotionStatistics">

    <ol class="breadcrumb" style="font-size: 12px">
        <li>广告中心</li>
        <li class="tittle-color"  ui-sref="campaigns" >广告投放</li>
        <li class="tittle-color" ui-sref="campaignsPromotionGroup({})" >广告推广组</li>
        <li >广告推广组统计</li>
    </ol>
    <div class="clearfix mt-10">
        <label class="title">
            <label>A</label>
            <span>{{title.advShortName}}</span>
        </label>
        <label class="title">
            <label>C</label>
            <span>{{title.campaignName}}</span>
        </label>
        <label class="title">
            <label>G</label>
            <span>{{title.groupName}}</span>
        </label>    </div>
    <div class="panel">
        <div class="searchWapper">

        <div class="panel-heading panel-style">
            <div class="row panel-row pad-10">
                <div class="col-lg-3">

                </div>
               <div class="search-operation pull-right">
                   <label class="btn btn-xs time-type " ng-class="{on : search.timeType == 'day'}">
                       <input type="radio" class="hide" name="timeType" value="day" ng-model="search.timeType" ng-click="timeTypeChange(search.timeType)">日
                   </label>
                   <label class="btn btn-xs time-type " ng-class="{on : search.timeType == 'week'}">
                       <input type="radio" class="hide" name="timeType" value="week" ng-model="search.timeType" ng-click="timeTypeChange(search.timeType)">周
                   </label>
                   <label class="btn btn-xs time-type " ng-class="{on : search.timeType == 'month'}">
                       <input type="radio" class="hide" name="timeType" value="month" ng-model="search.timeType" ng-click="timeTypeChange(search.timeType)">月
                   </label>
                </div>
            </div>
        </div>
        <div class="table-responsive">
            <table class="table table-bordered table-hover">
                <thead>
                <tr>
                    <th>日期</th>
                    <th>创意</th>
                    <th>展示</th>
                    <th>点击</th>
                    <th>点击率</th>
                    <th>独立展示</th>
                    <th>独立点击</th>
                    <th>独立点击率</th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td>统计</td>
                    <td>{{total.count}}</td>
                    <td>{{total.cpm}}</td>
                    <td>{{total.clickNum}}</td>
                    <td>{{total.cRate?(total.cRate).toFixed(2) + "%" :""}}</td>
                    <td>{{total.distinctPlayStart}}</td>
                    <td>{{total.distinctClickNum}}</td>
                    <td>{{total.icRate? (total.icRate).toFixed(2) + "%" :""}}</td>
                </tr>
                <tr ng-repeat="item in lists">
                    <td>{{item.dayTimeStat}} </td>
                    <td><a ui-sref="PromotionGroup.param({campaignId:campaignId})">{{item.count}}</a></td>
                    <td>{{item.cpm}}</td>
                    <td>{{item.clickNum}}</td>
                    <td>{{item.cRate?(item.cRate).toFixed(2) + "%":""}}</td>
                    <td>{{item.distinctPlayStart}}</td>
                    <td>{{item.distinctClickNum}}</td>
                    <td>{{item.icRate?(item.icRate).toFixed(2) + "%":""}}</td>
                </tr>
                </tbody>
            </table>

            <div class="panel-footer">


                <s-pagination conf="paginationDetail"></s-pagination>
            </div>

            <!--<a ui-sref="campaigns.detail({campaignsId:1})"  ui-sref-opts="{inherit:false}">aaaaa</a>-->
        </div>
    </div>
</div>
</div>